/**
 *  @file SDLScoreKeeper.h
 *
 *  @date 22-dec-2009
 *  @author Ives van der Flaas
 */

#ifndef SDLSCOREKEEPER_H_
#define SDLSCOREKEEPER_H_

#include <tr1/memory>
#include "scoreKeeper.h"
#include "SDLTextRepresentation.h"

namespace si_sdl
{
/**
 * Each usership contains one of these. It will show the ships current number of points somewhere
 * in white text on the screen.
 */
class SDLScoreKeeper: public si::ScoreKeeper
{
public:
	SDLScoreKeeper();
	virtual ~SDLScoreKeeper();

	virtual void draw();

	virtual void scoreChanged(int newScore);

private:
	std::tr1::shared_ptr<SDLTextRepresentation> fScoreText;
};

}

#endif /* SDLSCOREKEEPER_H_ */
